package org.maybenull.cadence.example.report;

import com.vaadin.Application;
import com.vaadin.ui.Window;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Service;
import org.maybenull.cadence.web.IActionContribution;

/**
 *
 * @author pettymt
 */
@Component(name="report-action")
@Service
public class ReportAction implements IActionContribution
{
    @Override
    public String getIcon() {
            return "icons/disk.png";
    }

    @Override
    public String getText() {
            return "Report";
    }

    @Override
    public void execute(Application application) {
      final Window reportWindow = new Window("Example Report Window");     
      reportWindow.setModal(true);
      application.getMainWindow().addWindow(reportWindow);
    }
}
